
%%%%%%%%%%%%% this file has been copid to softMaxControl.m %%%%%%
%%%%so stop using this, make all changes there %%%%%%%%%%%%%%%%%

load groundTruth.txt;
load saliency.log;
load Track_data.txt;

G = groundTruth;
sal = saliency;
td = Track_data;

interpolatedG = interpolate(G);
nFrames = size(interpolatedG,1);


newTd = td(72:72+nFrames-1,:);

newSal = sal(72:72+nFrames-1,:);

lecturer_tracking_scale_factor = 640/2560;
saliency_tracking_scale_factor = 640/1920;

tdFinal = newTd(:,2:3)*lecturer_tracking_scale_factor;
gtFinal = interpolatedG(:,2:3);
salFinal = newSal(:,2:3)*saliency_tracking_scale_factor;%Assuming that the 2nd and 3rd are the useful columns else include 4th column


%zoom ground truth
whos -file zoom_Data.mat
load('zoom_Data.mat','flag1');
zoomgt = flag1(:,2);

m = size(zoomgt,1);
tdFinal = tdFinal(1:m,:);
salFinal = salFinal(1:m,:);
gtFinal = gtFinal(1:m,:);

%use these matrices for learning
features = [tdFinal salFinal];
gtFinal;


%%%%%%%%%%%%% this file has been copid to softMaxControl.m %%%%%%
%%%%so stop using this, make all changes there %%%%%%%%%%%%%%%%%
